package club.sanmubird.travel_culture_wx_demo.demo.mysql.service;

import club.sanmubird.travel_culture_wx_demo.demo.mysql.dao.UserDao;
import club.sanmubird.travel_culture_wx_demo.demo.mysql.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @program: springboot_simpledb
 * @description: user service
 * @author: sam
 * @create: 2018-07-18 01:35
 * @update: 2018-07-18 01:35
 * @update: Sam
 **/
@Service
public class UserService {

	@Autowired
	ApplicationContext ctx;

	@Autowired
	UserDao userDao;


	public List<User> getAllUsers() {
		return userDao.getAllUsers();
	}

}
